<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>BOM</title>
</head>
<body>
<a href="https://www.baidu.com" onclick="push('/test1'); return false">put test</a>
<script>
    function push(path) {
        console.log(path)
        return false
    }
</script>
</body>
</html>
